export default function easeInOutCubic(
  t: number,
  b: number,
  c: number,
  d: number
) {
  const p = (c - b) / 2;
  t /= d / 2;
  if (t < 1) {
    return p * t ** 3 + b;
  }
  return p * ((t -= 2) * t * t + 2) + b;
}
